import request from '@/utils/request'

// 查询病例详情列表
export function listCases(query) {
  return request({
    url: '/einfo/cases/list',
    method: 'get',
    params: query
  })
}

// 查询病例详情详细
export function getCases(casesId) {
  return request({
    url: '/einfo/cases/' + casesId,
    method: 'get'
  })
}

// 新增病例详情
export function addCases(data) {
  return request({
    url: '/einfo/cases',
    method: 'post',
    data: data
  })
}

// 修改病例详情
export function updateCases(data) {
  return request({
    url: '/einfo/cases',
    method: 'put',
    data: data
  })
}

// 删除病例详情
export function delCases(casesId) {
  return request({
    url: '/einfo/cases/' + casesId,
    method: 'delete'
  })
}
